﻿<!DOCTYPE html>
<html lang="en">
<#include "../include/resource-head.ftl"/>
<body>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <div class="page-content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="table-responsive">
                        <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                            <thead>
                            <tr>
                                <th>评论人</th>
                                <th>内容</th>
                                <th>评论时间</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <#list pageInfo.list as item>
                            <tr>
                                <td>${item.name!}</td>
                                <td>${item.content!}</td>
                                <td>${item.addtime?string('yyyy-MM-dd HH:mm:ss')}</td>
                                <td>
                                    <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">

                                        <a class="btn btn-xs btn-danger"
                                           href="javascript:if(confirm('确定要删除吗？')){location.href = '/admin/comment/del/${item.id}'}">删除</a>

                                    </div>
                                </td>
                            </tr>
                            </#list>
                            </tbody>
                        </table>
                    <#include "../include/table-page.ftl"/>
                    </div>
                </div>
            </div>
        </div>
    </div></div>
</body>

<#include "../include/resource-script.ftl"/>
<script>
    function update(id) {
        $("#id").val(id);
        $("#model").modal("show");
    }

</script>
</html>

